package com.whh.cos.service;

import com.qcloud.cos.model.ObjectMetadata;
import com.whh.cos.model.ObjectInfo;
import com.whh.cos.system.ServiceException;

import java.util.List;

/**
 * @author huahui.wu.
 *         Created on 2018/1/16.
 */
public interface ObjectService {
    List<ObjectInfo> listObjects(String bucketName, String prefix) throws ServiceException;

    ObjectMetadata headObject(String bucketName, String key) throws ServiceException;
}
